package com.cloud.config.client;

import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cyt
 * @create 2020-03-17 16:43
 */

@RefreshScope
@RestController
public class Controller {

    @Value("${spring.application}")
    private String application;

    @RequestMapping("/config")
    public String get_Config() {
        return application;
    }

}
